package com.wy.dao;

import com.wy.pojo.Company;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface CompanyDao extends JpaRepository<Company,Integer> {
    @Query(value = "select * from company  where id=?1",nativeQuery = true)
    public List<Company> findBId(Integer id);
}
